<?php

require_once "core/application/models/bans/mbans1.php";

class Mbans2 extends Mbans1 {

    private $_query;

    protected function addNewBan($ip, $time_end) {
        /**
         *  добавляем бан
         * @param mixed $ip
         * @param date $time_end
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "INSERT INTO `banned_ip` (`mask`, `time_end`) VALUES ('$ip', '$time_end') ";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
